package demo.example.model.dao;

import demo.example.model.pojo.Message;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MessageMapper {
    int deleteByPrimaryKey(Integer id);
    int deleteByPhone(String phone);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    Message selectByPhone(String telephone);

    List<Message> selectByMessage(Message message);

    List<Message> selectAll();

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);
}